package com.zhxymm.book.dao;

import com.zhxymm.book.entity.NewBook;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NewBookRepository extends CrudRepository<NewBook, Long> {

    @Override
    public List<NewBook> findAll();

    NewBook findByNewBookId(long theId);
}
